package com.example.chat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.chat.domain.entity.Moment;
import com.example.chat.domain.entity.PublicMoment;
import com.example.chat.domain.entity.PublicMomentHash;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MomentMapper extends BaseMapper<Moment> {

    List<PublicMoment> queryPublicMoment(List<Long> ids);

    PublicMoment queryOneMoment(Long momentId);

    List<PublicMoment> scrollQuery(Long userId,Long momentId,Integer count,Integer type);

    List<PublicMoment> scrollQueryForSelf(Long userId,Long momentId,Integer count,Integer type);

    List<PublicMomentHash> BuildMomentRedis(Long userId, Integer type);


}
